import { request } from './axios'
import apiList from './apiList';

export const getAllMers = (data, params) => {
    return request({
        url: apiList.system.getAllMers,
        data,
        ...params,
    });
};

export const getChannelMers = (data, params) => {
    return request({
        url: apiList.system.getChannelMers,
        data,
        ...params,
    });
};

export const getMerBalance = (data, params) => {
    return request({
        url: apiList.system.getMerBalance,
        data,
        ...params,
    });
};

export const getBalanceChangeHis = (data, params) => {
    return request({
        url: apiList.system.getBalanceChangeHis,
        data,
        ...params,
    });
};


export const createChannelMer = (data, params) => {
    return request({
        url: apiList.system.createChannelMer,
        data,
        ...params,
    });
};

export const createNormalMer = (data, params) => {
    return request({
        url: apiList.system.createNormalMer,
        data,
        ...params,
    });
};


export const getSysPers = (data, params) => {
    return request({
        url: apiList.system.getSysPers,
        data,
        ...params
    });
}
export const editSysPer = (data, params) => {
    return request({
        url: apiList.system.editSysPer,
        data,
        ...params
    });
}

export const getSysRoles = (data, params) => {
    return request({
        url: apiList.system.getSysRoles,
        data,
        ...params
    });
}
export const editSysRole = (data, params) => {
    return request({
        url: apiList.system.editSysRole,
        data,
        ...params
    });
}
export const getUserSysPers = (data, params) => {
    return request({
        url: apiList.system.getUserSysPers,
        data,
        ...params
    });
}
export const editRolePer = (data, params) => {
    return request({
        url: apiList.system.editRolePer,
        data,
        ...params
    });
}

export const syncSysRolePer = (data, params) => {
    return request({
        url: apiList.system.syncSysRolePer,
        data,
        ...params
    });
}
export const editSysUser = (data, params) => {
    return request({
        url: apiList.system.editSysUser,
        data,
        ...params,
        editSysUser,
    });
};

export const editSysUserRole = (data, params) => {
    return request({
        url: apiList.system.editSysUserRole,
        data,
        ...params
    });
}

export const getSysUsers = (data, params) => {
    return request({
        url: apiList.system.getSysUsers,
        data,
        ...params
    });
}

export const getMerAccounts = (data, params) => {
    return request({
        url: apiList.system.getMerAccounts,
        data,
        ...params,
    });
};

export const createAccountByNo = (data, params) => {
    return request({
        url: apiList.system.createAccountByNo,
        data,
        ...params,
    });
};

export const createTransBatch = (data, params) => {
    return request({
        url: apiList.system.createTransBatch,
        data,
        ...params,
    });
};

export const getAccountBalance = (data, params) => {
    return request({
        url: apiList.system.getAccountBalance,
        data,
        ...params,
    });
};

export const getTransOrders = (data, params) => {
    return request({
        url: apiList.system.getTransOrders,
        data,
        ...params,
    });
};

export const getBatchTransHis = (data, params) => {
    return request({
        url: apiList.system.getBatchTransHis,
        data,
        ...params,
    });
};

export const checkTransBatch = (data, params) => {
    return request({
        url: apiList.system.checkTransBatch,
        data,
        ...params,
    });
};


